import $http from '@/utils/request.js';



export const getShipment = (param) => {
  return $http.get("/shipment/list", param)
}

//用户兑换礼物
export const exchangeGifts = (param) => {
  return $http.post("/order/create", param)
}

//添加礼物(仅管理员)
export const addGifts = (param) => {
  return $http.post("/gift/add", param)
}

//修改礼物(仅管理员)
export const updateGifts = (param) => {
  return $http.post("/gift/update", param)
}


export const deleteGifts = (id) => {
  return $http.delete("/gift/delete/"+id)
}



